<!DOCTYPE html>
<html>

  <body>

    <script type="text/javascript">

      function Car() {

      }

      Car.prototype.color = "blue";

      Car.prototype.doors = 4;

      Car.prototype.mpg = 25;

      Car.prototype.showColor = function() {

        document.write(this.color);

      };

      var oCar1 = new Car();
      var oCar2 = new Car();

      oCar1.showColor();  //output blue
      document.write("<br />")
      oCar2.showColor();  //output blue

    </script>

  </body>

</html>
